package dao;

import bean.User;
import util.JDBCUtil;

import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.Statement;

public class UserDao {
    public User getUser(int cardId) throws Exception {
        Connection connection = JDBCUtil.getConnection();
        Statement statement = connection.createStatement();
        ResultSet resultSet = statement.executeQuery("select * from user where cardid =" + cardId);
        User user = new User();

        while (resultSet.next()) {


        }


        return user;
    }
}
